import { CoordinateSystem } from '@/core/CoordinateSystem';
import { XYAxis } from '@/core/XYAxis';
import GUI from "lil-gui";




export async function main(dom: HTMLDivElement, menu: GUI) {
  const cs = new CoordinateSystem(dom);
  (window as any).cs = cs
  new XYAxis(cs)


  menu.add(cs, 'scale', 1, 1000, 1)
  return () => {
    cs.destroy()
  }
}